package com.an.blog.service;

import com.an.blog.admin.domain.BlogArticleTag;
import com.an.blog.admin.domain.bo.BlogArticleTagBo;
import com.an.blog.admin.domain.vo.BlogArticleTagVo;

import java.util.List;

/**
 * 文章标签中间Service接口
 *
 * @author Ann
 * @date 2023-05-08
 */
public interface IBlogArticleTagService {


    /**
     * 查询文章标签中间列表
     *
     * @param bo 业务对象
     * @return {@link List }<{@link BlogArticleTagVo }>
     * @author: Ann
     * @createDate: 2023/05/09 16:06:31
     * @version: 1.0.0
     */
    List<BlogArticleTagVo> queryList(BlogArticleTagBo bo);


    /**
     * 批量插入
     *
     * @param articleTagList 文章标记列表
     * @return {@link Boolean }
     * @author: Ann
     * @createDate: 2023/05/09 14:17:09
     * @version: 1.0.0
     */
    Boolean insertBatch(List<BlogArticleTag> articleTagList);

    /**
     * 删除标签根据文章id
     *
     * @param articleId 文章id
     * @return {@link Boolean }
     * @author: Ann
     * @createDate: 2023/05/09 16:31:01
     * @version: 1.0.0
     */
    Boolean deleteByArticleId(Long articleId);
}
